home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / rdate / rdate.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  742 b   |  41 lines

  1. /* rdate.h --- include file for remote server date setting utility */
  2.  
  3. /* Copyright (c) 1990, W. Keith Pyle, Austin, Texas */
  4.  
  5. #if defined(sun) || defined(ultrix)
  6. #define HAS_ADJTIME
  7. #endif
  8.  
  9. /* Sprite doesn't have adjtime */
  10. #undef HAS_ADJTIME
  11.  
  12. #if defined(hpux)
  13. #define bcopy(from, to, count) memcpy(to, from, count)
  14. #define bzero(to, count) memset(to, 0, count)
  15. #endif
  16.  
  17. #if defined(SYSV) && defined(HAS_ADJTIME)
  18. #undef HAS_ADJTIME
  19. #endif
  20.  
  21. #include <stdio.h>
  22. #include <errno.h>
  23. #include <time.h>
  24. #include <sys/types.h>
  25. #include <sys/time.h>
  26. #include <sys/uio.h>
  27. #include <sys/socket.h>
  28. #include <netinet/in.h>
  29. #include <netdb.h>
  30.  
  31. #ifdef 386IX
  32. #include <net/errno.h>
  33. #endif
  34.  
  35. #define TIME_PORT    37
  36.  
  37. #define FALSE    0
  38. #define TRUE    1
  39.  
  40. void exit();
  41.